/*
 * CC3PODMaterial.h
 *
 * $Version: cocos3d 0.5-beta (eab7e651f462) on 2011-01-31 $
 * Author: Bill Hollings
 * Copyright (c) 2010-2011 The Brenwill Workshop Ltd. All rights reserved.
 * http://www.brenwill.com
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * http://en.wikipedia.org/wiki/MIT_License
 */

/** @file */	// Doxygen marker


#import "CC3Material.h"
#import "CC3IdentifiablePODExtensions.h"


/** A CC3Material whose content originates from POD resource data. */
@interface CC3PODMaterial : CC3Material {
	int podIndex;
	int podTextureIndex;
}

/**
 * The index of the texture in the POD file used by this node.
 * This value will be -1 if the material has no texture.
 */
@property(nonatomic, assign) int podTextureIndex;

/**
 * Allocates and initializes an autoreleased instance from the data of
 * this type at the specified index within the specified POD resource.
 */
+(id) materialAtIndex: (int) aPODIndex fromPODResource: (CC3PODResource*) aPODRez;

/**
 * The shininess of a material as specified in a POD file has a very
 * different scale than the shininess value used by OpenGL ES.
 * To compensate for this, the shininess value extracted from a POD
 * file is multiplied by this factor before being applied to the material.
 *
 * The initial value of this factor is 400. It can be changed with the
 * setShininessExpansionFactor: method.
 */
+(GLfloat) shininessExpansionFactor;

/**
 * The shininess of a material as specified in a POD file has a very
 * different scale than the shininess value used by OpenGL ES.
 * To compensate for this, the shininess value extracted from a POD
 * file is multiplied by this factor before being applied to the material.
 *
 * The initial value of this factor is 400. It can be changed using this method.
 */
+(void) setShininessExpansionFactor: (GLfloat) aFloat;


@end
